//
//  SecondTabListSecondModel.m
//  项目A --半糖
//
//  Created by romana on 16/5/23.
//  Copyright © 2016年 romana. All rights reserved.
//

#import "SecondTabListSecondModel.h"
#import "SecondTabLeftThirdModel.h"

@implementation SecondTabListSecondModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{

    if ([key isEqualToString:@"user"]) {
        
        self.nickname = [value objectForKey:@"nickname"];
        self.avatar = [value objectForKey:@"avatar"];
        
    }
    
}


-(void)setPics:(NSMutableArray *)pics{

    _pics = pics;
    
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in _pics) {
        SecondTabLeftThirdModel *NSModel = [[SecondTabLeftThirdModel alloc] init];
        [NSModel setValuesForKeysWithDictionary:dic];
        [array addObject:NSModel];
        
    }
    _pics = [NSMutableArray arrayWithArray:array];




}


@end
